package xyz.dfm.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * @author: Dsi
 * @date: 2022/2/14 20:07
 * @description:
 */
@Data
@Accessors(chain = true)
@TableName("chaptertab")
public class Chapter {
    @TableId(type = IdType.AUTO)
    private Integer ChapterId;
    private String ChapterNumber;
    private String ChapterName;
    private String ChapterContent;
    private Integer BookId;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date ChapterTime;
}
